<?php
class Civil extends Zend_Db_Table{
	protected $_primary='id_civil';
	protected $_name   ='estado_civil';

	public function buscar(){
		$db = Zend_Registry::get('db');
		$sql= 'select id_civil,
					  ds_civil
                 from estado_civil';
		return $db->query($sql)->fetchAll();
	}
	public function load($id){
		$row = $this->find($id)->current();
    	$this->id_civil 			= $row["id_civil"];
    	$this->ds_civil 			= $row["ds_civil"];
	}	
}